using StudentVideo.Client.Common.Interfaces;
using StudentVideo.Client.Handler;
using StudentVideo.Shared.Models;
using StudentVideo.Shared.Dtos.Login;

namespace StudentVideo.Client.Routers;

public class LoginRouter(HttpHandler HttpHandler): IHttpRouter {
   public HttpHandler _http { get; set; } = HttpHandler;

   public async Task<HttpResult<LoginResult>> Admin(LoginRequest data) {
      return await _http.PostAsync<LoginResult>("/Login/Admin", data);
   }
}
